<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: ConstMappingWrapper Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00061.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#pri-methods">Private Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">ConstMappingWrapper Class Reference<div class="ingroups"><a class="el" href="a00520.html">mappingDetails - mostly internal mapping classes</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ConstMappingWrapper" --><!-- doxytag: inherits="Mapping" -->
<p>Wraps an <a class="el" href="a00058.html" title="Represents a not changeable mapping (mathematical function) from domain with at least the time to a A...">ConstMapping</a> into a <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> interface.  
 <a href="a00061.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00300_source.html">MappingUtils.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ConstMappingWrapper:</div>
<div class="dyncontent">
<div class="center"><img src="a00672.png" border="0" usemap="#ConstMappingWrapper_inherit__map" alt="Inheritance graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ConstMappingWrapper:</div>
<div class="dyncontent">
<div class="center"><img src="a00673.png" border="0" usemap="#ConstMappingWrapper_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00674.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae38ced1acdddd0231959fd66219b7bf2"></a><!-- doxytag: member="ConstMappingWrapper::ConstMappingWrapper" ref="ae38ced1acdddd0231959fd66219b7bf2" args="(const ConstMapping *m)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>ConstMappingWrapper</b> (const <a class="el" href="a00058.html">ConstMapping</a> *m)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af7a80b0695d9d207c2dede99ddabfb71"></a><!-- doxytag: member="ConstMappingWrapper::ConstMappingWrapper" ref="af7a80b0695d9d207c2dede99ddabfb71" args="(const ConstMappingWrapper &amp;o)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>ConstMappingWrapper</b> (const <a class="el" href="a00061.html">ConstMappingWrapper</a> &amp;o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#ae546ec9047dae116ef51b5919cf4621a">setValue</a> (const <a class="el" href="a00013.html">Argument</a> &amp;, argument_value_cref_t)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the value of the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> at the specified position.  <a href="#ae546ec9047dae116ef51b5919cf4621a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5c7771bd13f8cdb93f5dce837fdffa1"></a><!-- doxytag: member="ConstMappingWrapper::createIterator" ref="ab5c7771bd13f8cdb93f5dce837fdffa1" args="()" -->
virtual <a class="el" href="a00137.html">MappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#ab5c7771bd13f8cdb93f5dce837fdffa1">createIterator</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer of a new Iterator which is able to iterate over the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> and can change it. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a00137.html">MappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#ab6de270ec2325131f99174860f396025">createIterator</a> (const <a class="el" href="a00013.html">Argument</a> &amp;pos)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer of a new Iterator which is able to iterate over the function and can change it.  <a href="#ab6de270ec2325131f99174860f396025"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual argument_value_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a6706d0676194d24aa60059d93c8cbc44">getValue</a> (const <a class="el" href="a00013.html">Argument</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value of this <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> at the position specified by the passed <a class="el" href="a00013.html" title="Defines an argument for a mapping.">Argument</a>.  <a href="#a6706d0676194d24aa60059d93c8cbc44"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a00059.html">ConstMappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a6a2c09d666b9e986798d0be48add4cdd">createConstIterator</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a> by use of the respective implementation of the "createIterator()"-method.  <a href="#a6a2c09d666b9e986798d0be48add4cdd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a00059.html">ConstMappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a648971050f302ee9afd31ebd51d54698">createConstIterator</a> (const <a class="el" href="a00013.html">Argument</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a> by use of the respective implementation of the "createIterator()"-method.  <a href="#a648971050f302ee9afd31ebd51d54698"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5290d7c6126897a26e810da626d115ec"></a><!-- doxytag: member="ConstMappingWrapper::constClone" ref="a5290d7c6126897a26e810da626d115ec" args="() const " -->
virtual <a class="el" href="a00058.html">ConstMapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a5290d7c6126897a26e810da626d115ec">constClone</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a deep const copy of this mapping by using the according "clone()"-implementation. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a17b06a78a2258990893fddf79d9268a0"></a><!-- doxytag: member="ConstMappingWrapper::clone" ref="a17b06a78a2258990893fddf79d9268a0" args="() const " -->
virtual <a class="el" href="a00136.html">Mapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a17b06a78a2258990893fddf79d9268a0">clone</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a deep copy of this <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa83200fa10c919296e8af734a71d282e"></a><!-- doxytag: member="ConstMappingWrapper::mapping" ref="aa83200fa10c919296e8af734a71d282e" args="" -->
const <a class="el" href="a00058.html">ConstMapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>mapping</b></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1e229ad66ab26ae226c02811500c8e32"></a><!-- doxytag: member="ConstMappingWrapper::operator=" ref="a1e229ad66ab26ae226c02811500c8e32" args="(const ConstMappingWrapper &amp;)" -->
<a class="el" href="a00061.html">ConstMappingWrapper</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00061.html#a1e229ad66ab26ae226c02811500c8e32">operator=</a> (const <a class="el" href="a00061.html">ConstMappingWrapper</a> &amp;)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Assignment operator is not allowed. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Wraps an <a class="el" href="a00058.html" title="Represents a not changeable mapping (mathematical function) from domain with at least the time to a A...">ConstMapping</a> into a <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> interface. </p>
<p>Assumes that "setValue()" of the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> interface will never be called.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Karl Wessel </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6a2c09d666b9e986798d0be48add4cdd"></a><!-- doxytag: member="ConstMappingWrapper::createConstIterator" ref="a6a2c09d666b9e986798d0be48add4cdd" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a00059.html">ConstMappingIterator</a>* ConstMappingWrapper::createConstIterator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an <a class="el" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a> by use of the respective implementation of the "createIterator()"-method. </p>
<p>Override this method if your ConstIterator differs from the normal iterator. </p>

<p>Reimplemented from <a class="el" href="a00136.html#acdf62aed4b8a469e63c036e75567c2e3">Mapping</a>.</p>
<div class="fragment"><pre class="fragment">                                                            {
    <span class="keywordflow">return</span> mapping-&gt;<a class="code" href="a00058.html#a5ff3a15fe6d536fa7a26a3fe1ff1b274" title="Returns a pointer of a new Iterator which is able to iterate over this Mapping.">createConstIterator</a>();
  }
</pre></div>
</div>
</div>
<a class="anchor" id="a648971050f302ee9afd31ebd51d54698"></a><!-- doxytag: member="ConstMappingWrapper::createConstIterator" ref="a648971050f302ee9afd31ebd51d54698" args="(const Argument &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a00059.html">ConstMappingIterator</a>* ConstMappingWrapper::createConstIterator </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns an <a class="el" href="a00059.html" title="Defines an const iterator for a ConstMapping which is able to iterate over the Mapping.">ConstMappingIterator</a> by use of the respective implementation of the "createIterator()"-method. </p>
<p>Override this method if your ConstIterator differs from the normal iterator. </p>

<p>Reimplemented from <a class="el" href="a00136.html#aa659ff5ecd1020261cbd39d136ea1f57">Mapping</a>.</p>
<div class="fragment"><pre class="fragment">                                                                               {
    <span class="keywordflow">return</span> mapping-&gt;<a class="code" href="a00058.html#a5ff3a15fe6d536fa7a26a3fe1ff1b274" title="Returns a pointer of a new Iterator which is able to iterate over this Mapping.">createConstIterator</a>(pos);
  }
</pre></div>
</div>
</div>
<a class="anchor" id="ab6de270ec2325131f99174860f396025"></a><!-- doxytag: member="ConstMappingWrapper::createIterator" ref="ab6de270ec2325131f99174860f396025" args="(const Argument &amp;pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a00137.html">MappingIterator</a>* ConstMappingWrapper::createIterator </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a pointer of a new Iterator which is able to iterate over the function and can change it. </p>
<p>The iterator starts at the passed position. </p>

<p>Implements <a class="el" href="a00136.html#a8723ba0f78d2f259f1f150c9db346cb2">Mapping</a>.</p>
<div class="fragment"><pre class="fragment">                                                               {
    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a00060.html" title="Wraps an ConstMappingIterator into a MappingIterator interface.">ConstMappingIteratorWrapper</a>(mapping-&gt;<a class="code" href="a00058.html#a5ff3a15fe6d536fa7a26a3fe1ff1b274" title="Returns a pointer of a new Iterator which is able to iterate over this Mapping.">createConstIterator</a>(pos));
  }
</pre></div>
</div>
</div>
<a class="anchor" id="a6706d0676194d24aa60059d93c8cbc44"></a><!-- doxytag: member="ConstMappingWrapper::getValue" ref="a6706d0676194d24aa60059d93c8cbc44" args="(const Argument &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual argument_value_t ConstMappingWrapper::getValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the value of this <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> at the position specified by the passed <a class="el" href="a00013.html" title="Defines an argument for a mapping.">Argument</a>. </p>
<p>The complexity of this method depends on the actual implementation. </p>

<p>Implements <a class="el" href="a00058.html#afabbd15bb8f50e45901f99633d0a47c9">ConstMapping</a>.</p>
<div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> mapping-&gt;<a class="code" href="a00058.html#afabbd15bb8f50e45901f99633d0a47c9" title="Returns the value of this Mapping at the position specified by the passed Argument.">getValue</a>(pos); }
</pre></div>
</div>
</div>
<a class="anchor" id="ae546ec9047dae116ef51b5919cf4621a"></a><!-- doxytag: member="ConstMappingWrapper::setValue" ref="ae546ec9047dae116ef51b5919cf4621a" args="(const Argument &amp;, argument_value_cref_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void ConstMappingWrapper::setValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">argument_value_cref_t&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Changes the value of the <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> at the specified position. </p>
<p>The complexity of this method depends on the implementation. </p>

<p>Implements <a class="el" href="a00136.html#ab8906dfac661d5c6a0a35cf1744f06ed">Mapping</a>.</p>
<div class="fragment"><pre class="fragment">{ assert(<span class="keyword">false</span>); }
</pre></div>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/base/phyLayer/<a class="el" href="a00300_source.html">MappingUtils.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00061.html">ConstMappingWrapper</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:31 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
